package com.share.example.sbnf.controller;

import com.share.common.common.Result;
import com.share.example.sbnf.model.Node;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class NodeController {

    @Autowired
    private RbacService rbacService;

    @RequestMapping("/node")
    @ApiOperation(value = "测试接口", httpMethod = "GET")
    public Result logout() {
        Node node = new Node();
        node.setMsg("这是一个jsp系统");
        node.setName("example");
        return Result.success(node);
    }

    @RequestMapping("/login")
    @ApiOperation(value = "测试接口", httpMethod = "GET")
    public Result login() {
        Object login = rbacService.login();
        return Result.success(login);
    }


}
